package com.bjpowernode.entity;

import com.bjpowernode.core.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 分类属性表
 * </p>
 *
 * @author zs
 * @since 2024-06-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class PmsAttr extends BaseEntity {

    private static final long serialVersionUID = 1L;

    //添加用的构造方法
    public PmsAttr(String name, String categoryId, Integer type) {
        this.name = name;
        this.categoryId = categoryId;
        this.type = type;
    }

    //修改用的构造方法（修改需要id，但是id没有在构造方法中，需要额外赋值）
    public PmsAttr(String name, Integer type) {
        this.name = name;
        this.type = type;
    }


    /**
     * 属性名称
     */
    private String name;

    /**
     * 分类id
     */
    private String categoryId;

    /**
     * 1-spu 2-sku
     */
    private Integer type;

    /**
     * 排序
     */
    private Long sort;


}
